<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form id="form1" method="get" action="/user/list">
        <p>姓名：<input type="text"></p>
        <p>密码：<input type="text"></p>
        <a href="javascript:void(0)" onclick="sub()">提交</a>
    </form>

    <script type="text/javascript">
        function sub() {
            var form1 = document.getElementById('form1');
            form1.submit()
        }

    </script>
</body>
</html>